package com.clwl.supervise.superviseapp.entity.risk;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 风险分级设置分值表
    */
@Data
@TableName(value = "JG_RISK_GRADE_SCORE")
//@KeySequence(value = "JG_RISK_GRADE_SCORE_SQE")
public class JgRiskGradeScore implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 风险等级评定表id
     */
    @TableField(value = "RISK_LEVEL_ID")
    private Long riskLevelId;

    /**
     * 环节code
     */
    @TableField(value = "SUP_PROCESS")
    private String supProcess;

    /**
     * 分级名称
     */
    @TableField(value = "GRADE_NAME")
    private String gradeName;

    /**
     * 分级比例
     */
    @TableField(value = "GRADE_VALUE")
    private Double gradeValue;

    /**
     * 排序
     */
    @TableField(value = "SORT")
    private Long sort;

    /**
     * 是否固定项：1-是，0-否
     */
    @TableField(value = "IS_REGULAR")
    private String isRegular;

    /**
     * 分数（原分数）
     */
    @TableField(value = "SCORE")
    private Double score;

    /**
     * 分数（乘算比例之后）
     */
    @TableField(value = "GRADE_SCORE")
    private Double gradeScore;

    /**
     * 是否删除：0-否, 1-是
     */
    @TableField(value = "DELETE_FLAG")
    private Integer deleteFlag;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR")
    private String creator;

    /**
     * 修改人姓名
     */
    @TableField(value = "UPDATED_BY")
    private String updatedBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    private Long creatorId;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 修改人id
     */
    @TableField(value = "UPDATOR_ID")
    private Long updatorId;
    /**
     *  JG_RISK_GRADE 表id
     */
    @TableField(exist = false )
    private Long riskGradeId;

    private static final long serialVersionUID = 1L;
}
